package com.seamtop.cuber.common.entriy;

import java.util.List;

/**
 * Created by zongjunfeng on 2015/8/19.
 */
public class CuberReducer {

    private String reducerId;

    private String reducerName;

    private String statPeriod;

    private String [] columnArray;

    private String dimens;

    private String statColumn;

    private String statType;

    private String sourceTable;

    private String outPutTable;

    private String where;

    private String filterDateColumn;

    private String desc;

    private String cronExpression;

    private int status = 0;

    private String statusDesc = "normal";

    public String getReducerId() {
        return reducerId;
    }

    public void setReducerId(String reducerId) {
        this.reducerId = reducerId;
    }

    public String getStatPeriod() {
        return statPeriod;
    }

    public void setStatPeriod(String statPeriod) {
        this.statPeriod = statPeriod;
    }

    public String[] getColumnArray() {
        return columnArray;
    }

    public void setColumnArray(String[] columnArray) {
        this.columnArray = columnArray;
    }

    public String getStatColumn() {
        return statColumn;
    }

    public void setStatColumn(String statColumn) {
        this.statColumn = statColumn;
    }

    public String getStatType() {
        return statType;
    }

    public void setStatType(String statType) {
        this.statType = statType;
    }

    public String getSourceTable() {
        return sourceTable;
    }

    public void setSourceTable(String sourceTable) {
        this.sourceTable = sourceTable;
    }

    public String getOutPutTable() {
        return outPutTable;
    }

    public void setOutPutTable(String outPutTable) {
        this.outPutTable = outPutTable;
    }

    public String getWhere() {
        return where;
    }

    public void setWhere(String where) {
        this.where = where;
    }

    public String getFilterDateColumn() {
        return filterDateColumn;
    }

    public void setFilterDateColumn(String filterDateColumn) {
        this.filterDateColumn = filterDateColumn;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getDimens() {
        return dimens;
    }

    public void setDimens(String dimens) {
        this.dimens = dimens;
    }

    public String getReducerName() {
        return reducerName;
    }

    public void setReducerName(String reducerName) {
        this.reducerName = reducerName;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        switch (status){
            case 0:
                this.statusDesc = "normal";
                break;
            case 1:
                this.statusDesc = "disabled";
                break;
            case 2:
                this.statusDesc = "deleted";
                break;
            default:
                this.statusDesc = "normal";
                break;
        }
        this.status = status;
    }

    public String getStatusDesc() {
        return statusDesc;
    }

    public void setStatusDesc(String statusDesc) {
        this.statusDesc = statusDesc;
    }
}
